﻿using System;
using System.Collections.Generic;

namespace Oxage.Midi
{
	public class MidiProgram
	{
		#region Properties
		public int Number
		{
			get;
			set;
		}

		public string Name
		{
			get;
			set;
		}

		public object Instrument
		{
			get;
			set;
		}
		#endregion

		#region Methods
		public override string ToString()
		{
			return this.Name;
		}

		public static List<MidiProgram> ConvertList(List<string> list)
		{
			List<MidiProgram> result = new List<MidiProgram>();

			int i = 1;
			foreach (string item in list)
			{
				result.Add(new MidiProgram() { Number = i++, Name = item });
			}

			return result;
		}
		#endregion
	}
}
